﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Universe.OneC
{
    public class Dump1C
    {
        public List<Row1C> ResultSet = new List<Row1C>();
    }

    public class Row1C
    {
        OrderedDictionary<string, PropertyValue> _cells = new OrderedDictionary<string, PropertyValue>();

        public OrderedDictionary<string, PropertyValue> Cells
        {
            get { return _cells; }
        }
    }

    public class RowOfTable1C : Row1C
    {
        public int RowNumber { get; set; }
    }

    public class OrderedDictionary<K, V>
    {
        private Dictionary<K, V> _dictionary = new Dictionary<K, V>();
        private List<K> _keys = new List<K>();

        public void Add(K key, V value)
        {
            _keys.Add(key);
            _dictionary[key] = value;
        }

        public List<K> Keys
        {
            get { return _keys; }
        }

        public Dictionary<K, V> Dictionary
        {
            get { return _dictionary; }
        }

    }

}
